package com.riddle.dao;

import java.util.List;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.riddle.model.Category;

@Repository
@Scope("prototype")
public class CategoryDao extends BaseDao<Category> {

	@Override
	public Category query(Long id) {
		return super.query(id, "selectCategoryById");
	}

	@Override
	public List<Category> queryModelByPage(Integer page, Integer rows, String query) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void insert(Category model) {
		// TODO Auto-generated method stub
		super.insert(model, "insertCategory");
	}

	@Override
	public void update(Category model) {
		// TODO Auto-generated method stub
		super.update(model, "updatetCategory");
	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		super.delete(id, "deleteCategory");
	}

	@Override
	public List<Category> queryParent() {
		// TODO Auto-generated method stub
		return null;
	}
}
